package com.sq.partner.manager.dao;

import java.util.List;

import com.sq.partner.manager.mybatis.model.ChannelDto;
import com.sq.partner.manager.mybatis.model.FacadeUserChannel;

/**
 * 出单用户合作伙伴配置
 * @author zhihuizhao
 *
 */
public interface IFacadeUserChannelDao {

	void add(FacadeUserChannel channel) throws Exception;
	
	boolean delete(Long userId) throws Exception;
	
	List<ChannelDto> queryChannelsByUserid(FacadeUserChannel channel) throws Exception;
	
	/**
	 * 查询该合作伙伴是否已有出单用户配置
	 * @param channelCode
	 * @return
	 * @throws Exception
	 */
	int queryUcCountByChannelCode(String channelCode) throws Exception;
}
